// 头部全部商品分类的二级菜单
.nav-category {
    .text {
        visibility: hidden;
    }
    .category-content {
        background-color: #9C9EA0;
        border-color: transparent;
        li {
            a {
                color: #fff;
            }
        }
    }
}

// 主要部分
.head-container {
    width: 1226px;
    margin: 0 auto;
}

// banner区域
.banner-container {
    position: relative;
    height: 460px;
    .slideshow {
        li {
            display: none;
            position: absolute;
            &:first-child {
                display: block;
            }
        }
        img {
            width: 1226px;
            height: 460px;
        }
    }
    .pagination {
        position: absolute;
        bottom: 26px;
        right: 30px;
        li {
            float: left;
            width: 6px;
            height: 6px;
            background-color: rgba(0, 0, 0, 0.4);
            border: 2px solid rgba(255, 255, 255, .3);
            border-radius: 50%;
            margin: 0 4px;
            cursor: pointer;
            &:hover {
                background-color: rgba(255, 255, 255, .4);
                border-color: rgba(0, 0, 0, .4);
            }
        }
        .active {
            background-color: rgba(255, 255, 255, .4);
            border-color: rgba(0, 0, 0, .4);
        }
    }
    .btn {
        position: absolute;
        top: 50%;
        margin-top: -35px;
        width: 40px;
        height: 70px;
        line-height: 70px;
        color: #A6A6A6;
        text-align: center;
        cursor: pointer;
        &:hover {
            color: #fff;
            background-color: rgba(0, 0, 0, .4);
        }
        i {
            font-size: 32px;
        }
        &.btn-prev {
            left: 232px;
        }
        &.btn-next {
            right: 0;
        }
    }
}

// 快捷服务
.fast-container {
    margin: 14px 0 26px;
    .service {
        position: relative;
        float: left;
        width: 212px;
        height: 150px;
        background-color: #5F5750;
        padding: 10px;
        &::after {
            content: "";
            position: absolute;
            right: 12px;
            width: 1px;
            height: 150px;
            background-color: #5F5750;
        }
        &::before {
            content: "";
            position: absolute;
            bottom: 10px;
            width: 209px;
            height: 1px;
            background-color: #5F5750;
        }
        li {
            float: left;
            width: 69px;
            height: 74px;
            border-right: 1px solid #7F776F;
            border-bottom: 1px solid #7F776F;
            opacity: 0.7;
            &.bot {
                border-bottom: none;
            }
            &:hover {
                opacity: 1;
            }
            a {
                display: block;
                color: #fff;
                font-size: 12px;
                padding: 10px 0;
                text-align: center;
            }
            img {
                width: 24px;
                height: 24px;
                margin: 5px 0;
            }
        }
    }
    .recommend {
        float: right;
        width: 993px;
        height: 170px;
        a {
            float: left;
            width: 316px;
            height: 170px;
            margin-left: 15px;
            img {
                width: 100%;
            }
        }
    }
}

// 主要container
.main-container {
    width: 100%;
    background-color: #F5F5F5;
    padding-bottom: 5px;
    .banner-box {
        margin: 22px 0;
    }
}

.m-section {
    .section-hd {
        position: relative;
        height: 60px;
        line-height: 60px;
        h2 {
            color: #333333;
            font-weight: normal;
        }
        .nav {
            position: absolute;
            right: 0;
            top: 0;
            span {
                margin-left: 25px;
                font-size: 16px;
                cursor: pointer;
                padding: 4px;
                &.active {
                    color: #FF6700;
                    border-bottom: 2px solid #FF6700;
                }
            }
        }
        .more {
            position: absolute;
            top: 16px;
            right: 0;
            height: 20px;
            line-height: 20px;
            color: #424242;
            margin-left: 25px;
            font-size: 16px;
            padding: 4px;
            &:hover {
                color: #FF6700;
                .iconfont {
                    background: #FF6700;
                }
            }
            .iconfont {
                display: inline-block;
                width: 20px;
                height: 20px;
                border-radius: 50%;
                color: #fff;
                background-color: #B0B0B0;
                margin-left: 5px;
                font-size: 8px;
                text-align: center;
                vertical-align: top;
            }
        }
    }
    .section-bd {
        overflow: hidden;
        .left {
            float: left;
        }
        .right {
            float: left;
            width: 992px;
        }
    }
    .nice-goods {
        .item {
            width: 234px;
            margin-bottom: 14px;
            img {
                height: 300px;
            }
        }
    }
    .goods-list {
        width: 992px;
        .item {
            float: left;
            margin: 0 0 14px 14px;
            a {
                width: 234px;
                display: block;
                background-color: #fff;
            }
            .tit {
                color: #333333;
                font-weight: normal;
                font-size: 14px;
            }
            .desc {
                color: #B0B0B0;
            }
            .price {
                color: #FF6700;
                del {
                    color: #B0B0B0;
                    margin-left: 5px;
                }
            }
        }
        .item2 {
            a {
                height: 260px;
                text-align: center;
                padding: 20px 0;
            }
            .pic {
                width: 160px;
                height: 160px;
            }
            .tit {
                margin: 0 10px;
                text-overflow: ellipsis;
                white-space: nowrap;
                overflow: hidden;
                margin-top: 18px;
            }
            .desc {
                margin: 5px 0 10px;
            }
        }
        .item3 {
            a {
                position: relative;
                width: 104px;
                height: 83px;
                padding: 30px 100px 30px 30px;
                margin-bottom: 14px;
                &.more {
                    .tit {
                        font-size: 18px;
                        margin: 20px 0 0;
                    }
                }
            }
            .pic {
                position: absolute;
                right: 20px;
                top: 30px;
                float: right;
                width: 80px;
                height: 80px;
                margin-top: 10px;
            }
            .tit {
                margin: 10px 0;
            }
            .desc {
                color: #757575;
            }
            .iconfont {
                position: absolute;
                top: 40px;
                right: 30px;
                height: 60px;
                font-size: 60px;
                color: #FF6700;
            }
        }
    }
}

#section-shangou {
    .section-hd {
        .btn {
            position: absolute;
            top: 0;
            right: 0;
            span {
                display: inline-block;
                width: 34px;
                height: 22px;
                line-height: 24px;
                text-align: center;
                color: #B0B0B0;
                border: 1px solid #E0E0E0;
                cursor: pointer;
                i {
                    font-size: 12px;
                }
            }
            .prev {
                margin-right: -5px;
            }
            .disabled {
                pointer-events: none;
                color: #E0E0E0;
            }
        }
    }
    .flashsale {
        position: relative;
        text-align: center;
        width: 234px;
        height: 290px;
        padding-top: 50px;
        background: #F1EDED;
        &::after {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 234px;
            height: 1px;
            background-color: #E53935;
        }
        .time {
            color: #EF3A3B;
            font-size: 22px;
        }
        .pic {
            margin: 30px 0;
        }
        .desc {
            color: #6F6D6D;
        }
        .countdown {
            margin-top: 30px;
            span {
                display: inline-block;
                width: 46px;
                height: 46px;
                line-height: 46px;
                color: #fff;
                background-color: #605751;
                font-size: 18px;
            }
        }
    }
    .right {
        height: 340px;
        position: relative;
        overflow: hidden;
    }
    .goods-list {
        position: absolute;
        left: 0px;
        width: 1000%;
        li {
            position: relative;
            &::after {
                content: "";
                position: absolute;
                top: 0;
                left: 0;
                width: 234px;
                height: 1px;
            }
            &:nth-of-type(1)::after {
                background-color: #FFAC13;
            }
            &:nth-of-type(2)::after {
                background-color: #83C44E;
            }
            &:nth-of-type(3)::after {
                background-color: #2196F3;
            }
            &:nth-of-type(4)::after {
                background-color: #E53935;
            }
            &:nth-of-type(5)::after {
                background-color: #00C0A5;
            }
            &:nth-of-type(6)::after {
                background-color: #FFAC13;
            }
            &:nth-of-type(7)::after {
                background-color: #83C44E;
            }
            &:nth-of-type(8)::after {
                background-color: #2196F3;
            }
            &:nth-of-type(9)::after {
                background-color: #E53935;
            }
            &:nth-of-type(10)::after {
                background-color: #00C0A5;
            }
            a {
                height: 300px;
            }
        }
    }
}

#section-shouji {
    .nice-goods {
        img {
            height: 614px;
        }
    }
}

.tool-bar {
    position: fixed;
    right: 0;
    bottom: 70px;
    width: 82px;
    text-align: center;
    a {
        display: inline-block;
        width: 82px;
        height: 70px;
        color: #757575;
        background-color: #fff;
        border: 1px solid #F5F5F5;
        padding-top: 20px;
        margin-top: -1px;
        &:hover {
            color: #FF6700;
        }
        &.back-to-top {
            margin-top: 15px;
            visibility: hidden;
        }
        .iconfont {
            font-size: 30px;
            padding: 0 25px;
        }
    }
}